<?php $data = rank_select(false, "year(RANK_PERIODE)='$year' AND month(RANK_PERIODE)='$month'", $orderby, $groupby=false);?>
<?php while ($row = mysql_fetch_assoc($data)):?>
<tr <?php echo tag_zebra($z++);?> align="center">
    <td><?php echo $row['RANK_ID'] ?></th>
    <?php $kary = mysql_fetch_assoc(kary_load($row['KODE_KARYAWAN']))?>
    <td><?php echo $kary['NAMA_KARYAWAN'] ?></td>
    <td><?php echo $row['RANK_RANGKING'] ?></td>
    <td><?php echo date("m", strtotime($row['RANK_PERIODE'])) . '-' . date("Y", strtotime($row['RANK_PERIODE'])) ?></td>
    <td><?php echo $row['RANK_POINT'] ?></td>
    <td>&nbsp;</td>
</tr>
<?php endwhile;?>